// pages/shop/jiaoyu/food/list.js
var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    tabs: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
    tabIndex: 0,
    list:[],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    app.ihttpGet("https://www.58zltc.com/api.php/Jiaoyu/food/shop_id/" + options.shop_id, res => {
      this.setData({
        list: res.data
      })
    })
  },

  setTab: function(e){
    const index = e.currentTarget.dataset.index;
    this.setData({
      tabIndex:index
    })
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})